package com.wangxiaobao.charge.mylibrary.engine.adapter;


import com.wangxiaobao.charge.mylibrary.utils.ByteUtil;

public class BytesFourToIntAdapter implements DataAdapter<Long>{
    @Override
    public Long parse(byte[] data) {
        //3c650c62  6e650c62
//        LogUtil.log("待解析数据:"+HexUtil.formatHexString(data)+","+ ByteUtil.intToBytesLittle());
//        String hex= HexUtil.formatHexString(data);
//        Integer six = Integer.parseInt(hex,16);
//        return six;
        return ByteUtil.byteFourToIntLittle(data,0);
    }
}
